package com.zjw.zy.service.helper;

import com.zjw.zy.bean.User;
import com.zjw.zy.constant.RegisterUserResult;
import com.zjw.zy.service.net.HttpService;
import com.zjw.zy.smi.JustWithIt;

/**
 * @author ：zhong.jw
 * @date ：Created in 2022/12/8 9:49
 */
public class UserHelper {

    private static final String TAG = "SettingHelper";

    private static volatile UserHelper instance;


    public static UserHelper getInstance() {
        if (instance == null) {
            synchronized (UserHelper.class) {
                if (instance == null) {
                    instance = new UserHelper();
                }
            }
        }
        return instance;
    }


    public void registerAccess(User user, @RegisterUserResult.Des JustWithIt<Integer> call) {
        HttpService.requestRegister(user, call);
    }

    public void queryLover(User user, JustWithIt<User> call) {
        HttpService.requestLover(user, call);
    }
}
